package com.example.mapdata.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.mapdata.entity.Hotcity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * (Hotcity)表数据库访问层
 *
 * @author makejava
 * @since 2024-09-20 08:49:25
 */
@Mapper
public interface HotcityDao extends BaseMapper<Hotcity> {
    /**
     * 根据传递过来的城市编号获取指定城市信息
     */
    Hotcity getCityInfoByCityCode(String code);

    /**
     * 根据城市名称修改城市信息
     */
    int updateCityInfoByCityName(@Param("name") String name, @Param("value") Hotcity hotcity);

    /**
     * 添加一条新城市
     */
    boolean addCityInfo(Hotcity hotcity);
}

